/*
 * @Descripttion: 
 * @version: 
 * @Author: yuxintao
 * @Date: 2022-04-26 09:22:57
 * @LastEditors: yuxintao
 * @LastEditTime: 2022-04-29 16:14:52
 */
#ifndef MAC_H_
#define MAC_H_

struct arppacket  
{
    unsigned short  ar_hrd;                 /*硬件类型*/  
    unsigned short  ar_pro;                 /*协议类型*/  
    unsigned char   ar_hln;                 /*硬件地址长度*/  
    unsigned char   ar_pln;                 /*协议地址长度*/  
    unsigned short  ar_op;                  /*ARP操作码*/  
    unsigned char   ar_sha[6];       /*发送方MAC地址*/  
    unsigned char   ar_sip[4];              /*发送方IP地址*/  
    unsigned char   ar_tha[6];       /*目的MAC地址*/  
    unsigned char   ar_tip[4];              /*目的IP地址    */  
}; 

#endif